Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature #2270 new_sonarqube #2287

Merged
merged 1 commit into from
Sep 30, 2022
Merged

Feature #2270 new_sonarqube #2287

merged 1 commit into from
Sep 30, 2022

Conversation

hsoh-u
Copy link
Collaborator

@hsoh-u hsoh-u commented Sep 29, 2022

Expected Differences

The SonarQube server is updated at mandan (8.9.6.50800 to 9.6.1.59531).

The SonarQube includes version numbers to the path. The softlink is used to SonarQube configuration instead of real path with version number.

drwxr-sr-x 6 met_test rap         4096 May  7  2021 /d1/projects/SonarQube/sonar-scanner-4.6.2.2472-linux
drwxr-sr-x 6 met_test rap         4096 Feb 22  2022 /d1/projects/SonarQube/sonar-scanner-4.7.0.2747-linux
lrwxrwxrwx 1 met_test rap           30 Sep 23 14:05 /d1/projects/SonarQube/sonar-scanner-linux -> sonar-scanner-4.7.0.2747-linux

The future upgrade will be done without changing the MET configuration by updating the soft link.

  • Do these changes introduce new tools, command line arguments, or configuration file options? [No]

    If yes, please describe:

  • Do these changes modify the structure of existing or add new output data types (e.g. statistic line types or NetCDF variables)? [No]

    If yes, please describe:

Pull Request Testing

  • Describe testing already performed for these changes:

None, deployed to seneca

  • Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:

None

  • Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [No]

  • Do these changes include sufficient testing updates? [No]

  • Will this PR result in changes to the test suite? [No]

    If yes, describe the new output and/or changes to the existing output:

  • Please complete this pull request review by [Fill in date].

Pull Request Checklist

See the METplus Workflow for details.

  • Review the source issue metadata (required labels, projects, and milestone).
  • Complete the PR definition above.
  • Ensure the PR title matches the feature or bugfix branch name.
  • Define the PR metadata, as permissions allow.
    Select: Reviewer(s)
    Select: Organization level software support Project or Repository level development cycle Project
    Select: Milestone as the version that will include these changes
  • After submitting the PR, select Development with the original issue number.
  • After the PR is approved, merge your changes. If permissions do not allow this, request that the reviewer do the merge.
  • Close the linked issue and delete your feature or bugfix branch from GitHub.

@hsoh-u hsoh-u linked an issue Sep 29, 2022 that may be closed by this pull request
20 tasks
@JohnHalleyGotway JohnHalleyGotway added this to the MET 11.0.0 milestone Sep 30, 2022
Copy link
Collaborator

@JohnHalleyGotway JohnHalleyGotway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one line version change looks fine to me! Thanks.

@JohnHalleyGotway JohnHalleyGotway changed the title #2270 Removed version number for SonrQube scanner path Feature #2270 new_sonarqube Sep 30, 2022
@hsoh-u hsoh-u merged commit 2e40571 into develop Sep 30, 2022
@hsoh-u hsoh-u deleted the feature_2270_new_sonarqube branch November 11, 2022 16:08
JohnHalleyGotway added a commit that referenced this pull request Oct 10, 2024
JohnHalleyGotway added a commit that referenced this pull request Oct 11, 2024
* Per #2887, update NumArray::vals() to return a reference to the vector rather a pointer to doubles.

* Per #2887, switch over the whole ContingencyTable class heirarchy from storing integer counts to storing double-precision weights.

* Add ContingencyTable::is_integer() member function to check whether the table contains all integers

* Per #2887, update parse_stat_line.cc to get it to compile after changing PCT to store thresholds in a std::vector.

* Per #2887, update PCTInfo::clear() logic.

* Per #2887, update ctc_by_row() logic to create reproducible results with the develop branch.

* Per #2887, update logic of define_prob_bins() to add a final >=1.0 threshold if needed. While ==0.1 works fine, I found that ==0.05 did not because the last >=1.0 threshold was missing likely do to floating point precision issues. This change should fix that problem.

* Per #2887, update roc_auc() function to match the develop branch

* Per #2887, fix bug if computation of far()

* Per #2887, replaced all ==0 integer equality checks with calls to is_eq() instead and fix a couple of equations to snuff out diffs in some CTS statistics.

* Per #2887, address some of the 34 SonarQube code smells flagged for this PR. Note that the compute_ci.h/.cc changes are necessary and good since we should be computing CI's using doubles instead of integer counts.

* Per #2887, update run_sonarqube.sh to specify the target CXX standard as 11. The hope is that that will limit the findings to only those features available in the C++11 standard.

* Per #2887, update to SonarQube version 6.1.0.4477 released on 6/27/2024.

* Per #2887, updating build_met_sonarqube.sh to specify --std=c++11 since c++17 is used by default

* Per #2887, swap in a much simpler implementation of the ORSS statistic to match the equation listed in the MET User's Guide.

* Per #2887, update grid_stat and library code to actually apply the grid_weight_flag settings to the computation of contingency table counts and statistics.

* Per #2887, fix the handling of bad data in the ORSS equation.

* Per #2887, add Npairs member to the ContingencyTable class, eliminate the n() accessor function, and carefully replace references to n() with n_pairs() for the integer number of matched pairs or total() with the double-precision sum of the weights.

* Per #2887, reset Npairs = 0 for ContingencyTable::zero_out()

* Per #2883, need to call set_n_pairs() in a few spots to set ECLV TOTAL column correctly ci-run-unit

* Per #2887, call set_n_pairs() when aggregating PCT data in Series-Analysis ci-run-unit

* Per #2887, update stat_analysis to parse the TOTAL column for the PCT and MCTC line types.

* Pet #2882, call set_n_pairs() after set_size() ci-run-unit

* Per #2887, reconfigure existing Ensemble-Stat unit test to request probabilistic output to see that it's impacted by the grid_weight_flag setting.

* Per #2887, update Ensemble-Stat test to provide climo stdev data

* Per #2887, add grid_weight_flag to the list of config options for Grid-Stat and Ensemble-Stat.

* Per #2887, disable FHO output if grid_weight_flag != NONE.

* Per #2887, revise the existing unit_grid_weight.xml unit tests for Grid-Stat to write CTC/CTS/MCTC/MCTS output and for the DESC column to be populated to indicate the type of grid weighting that was applied.

* Per #2887, relatively small changes to drive down SonarQube code smells. Also, switch from total() to n_pairs() when computing confidence intervals.

* Per #2887, more SonarQube tweaks

* Per #2887, more SonarQube tweaks.

* Per #2887, more SonarQube tweaks.

* Per #2887, whitespace only changes.

* Per #2287, fix path the seeps climo grid.

* Per #2887, update the grid_weight_flag documentation.

* Per #2887, tweak the wording.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Update the SonarQube version used for routine software scans.
2 participants